﻿using DotNetty.Buffers;
using QQ.Client;
using QQ.Codecs;
using static QQ.Codecs.DotNettyByteBufferExtensions.LengthType;

namespace QQ.Packet.Request.TLV
{
    public class TLV0x177 : IRequest
    {
        private long unknown1 = 1571193922L;
        private string unknown2 = "6.0.0.2413";
        private readonly QQDeviceConfig config;
        public TLV0x177(QQDeviceConfig config)
        {
            this.config = config;
        }
        public IByteBuffer Serialize() => Unpooled.Buffer()
            .WriteByte(1)
            .WriteInt((int)unknown1)
            .WriteBytesWithLength(unknown2.ToByteBuffer(), SHORT);
    }
}